<%@ page import="com.esurvey.core.*" %>
<html>
    <head>
    </head>
    <body>
        <%
            String u = request.getParameter("user");
            String p = request.getParameter("pass");
            if (eSurveyPersistence.loginOK(u,p)) {
                eSurveyPersistence.validateAccount(u);
                response.sendRedirect("login.jsp?emailVerified=true");
            } else {
                response.sendRedirect("error.jsp");
            }
        %>
    </body>
</html>
